<?php session_start(); ?>
<?php include("../inc/db_config.inc"); ?>
<?php 
$g_title="首页";
$g_tab="index";
$g_header=""; 
$g_js='<script type="text/javascript">
var a="xiaoshan"; 
</script>';
?>
 <?php include('header.php'); ?>
 <?php 
    function getNum($tabname,$c=""){
        $articles=mysql_query("select * from $tabname $c");
        $art_nums=mysql_num_rows($articles);
        echo $art_nums;
    }
 ?>
			<div class="crumb"></div>
			<div class="main">
				<div class="container r">
					<div class="conbox">
						<div class="cb_hd">
							<span class="cb_tl"></span>
							<span class="cb_tr"></span>
							<h2>后台管理</h2>
						</div>
						<div class="cb_bd">
							<div class="box w390 l">
							<h3>博客信息</h3>
								<ul class="ad_info">
                                
									<li>文章<a class="f_num" href="post.php"><?php getNum("info"); ?></a>篇</li>
									<li>评论<a class="f_num" href="comments.php"><?php getNum("comment"); ?></a>条
									  <p style="color: #888;">已审核<a class="f_num" href="comments_pass.php"><?php getNum("comment","where isVal=1"); ?></a>条,未审核<a class="f_num" href="comments_need.php"><?php getNum("comment","where isVal=0"); ?></a>条</p>
									</li>
									<li>分类<a class="f_num" href="cata_list.php"><?php getNum("type"); ?></a>个</li>
									<li>友情链接<a class="f_num" href="links.php"><?php getNum("link"); ?></a>个</li>
                                    <li>博客收录<a class="f_num" href="blogs.php"><?php getNum("blogs"); ?></a>个</li>
								</ul>
							</div>
							<div class="box w350 r">
								<h3>博主信息</h3>
							</div>	
							<div class="c"></div>
						</div>
						<div class="cb_ft"></div>
					</div>
				</div>
				<?php include('sidebar.php'); ?>
				<div class="c"></div>
			</div>
		</div>
	</div>
    <?php include('footer.php'); ?>